<?php

namespace app\controller;

use app\model\TorrentCache;
use support\Request;

class TorrentCacheController
{

    protected $noNeedLogin = [];
    public function index()
    {
        try {
            $result = TorrentCache::select();
            return json(["code" => 200, "msg" => "辅种库获取成功", "data" => $result]);
        } catch (\Exception $e) {
            return json(["code" => 400, "msg" => "获取失败"]);
        }
    }

}
